<script language=javascript type="text/javascript">
  var scrollPic_02 = new ScrollPic();
  scrollPic_02.scrollContId   = "ISL_Cont_1"; //内容容器ID
  scrollPic_02.arrLeftId      = "LeftArr";//左箭头ID
  scrollPic_02.arrRightId     = "RightArr"; //右箭头ID

  scrollPic_02.frameWidth     = 645;//显示框宽度
  scrollPic_02.pageWidth      = 110; //翻页宽度

  scrollPic_02.speed          = 10; //移动速度(单位毫秒，越小越快)
  scrollPic_02.space          = 10; //每次移动像素(单位px，越大越快)
  scrollPic_02.autoPlay       = false; //自动播放
  scrollPic_02.autoPlayTime   = 3; //自动播放间隔时间(秒)

  scrollPic_02.initialize(); //初始化
</script>
<div class="album">
  <div class="title">
    <%= link_to_remote "相册",
      :update => :album_replace,
      :url => valleyers_show_album_url(@valleyer),
      :method => :get
  %>
    <p>&nbsp;>>&nbsp;</p>
    <%= link_to_remote @album.name,
      :update => :album_replace,
      :url => valleyers_show_albums_show_photos_show_entries_url(
      :album_id => @album.id,
      :valleyer_id => @valleyer.id
    ),
      :method => :get
  %>
  </div>
  <div class="rollphotos">
    <div class="blk_29">
      <a id="LeftArr" href="javascript:;" class="LeftBotton"></a>
      <div id="ISL_Cont_1" class="Cont">
        <!-- 图片列表 begin -->
        <% @album.photos.each do |photo| %>
          <div id="photo_<%= photo.id %>" class="box">
            <%= link_to_remote photo_image_tag(photo,:height => 70),
              :update => :photo_show,
              :url => valleyers_show_albums_show_photos_show_scan_url(photo),
              :method => :get,
              :html => {
              :class => "imgBorder"
            }
          %>
          </div>
        <% end %>
        <!-- 图片列表 end -->
      </div>
      <a id="RightArr" href="javascript:;" class="RightBotton"></a>
    </div>
  </div>
  <div id="photo_show" class="photo_show">
    <%= photo_image_tag @photo, :height => 374 %>
  </div>
  <div class="photo_massage">
    <div id="name_and_note" class="name_and_note">
      <%= render :file => "valleyers/show/albums/show/photos/index.js" %>
    </div>
    <%= link_to_remote "编辑信息",
      :update => :name_and_note,
      :url => edit_valleyers_show_albums_show_photo_url(@photo),
      :method => :get,
      :html => {
      :class => "edit_photo_massage"
    }
  %>
  </div>
  <div class="photo_created_at">上传于：<%= @photo.created_at.strftime("%Y年%m月%d日") %></div>
  <div class="photo_delete">
    <%= link_to_remote "删除",
      :update => :album_replace,
      :url => valleyers_show_albums_show_photos_show_scan_url(@photo),
			:confirm => "确认删除?",
      :loading => "Effect.Fade('photo_#{@photo.id}'), Effect.Fade('photo_show')",
      :method => :delete if loggined_by? @valleyer
  %>
  </div>
  <div class="line"></div>
  <div id="photo_review" class="album_review">
    <%= render :file => "valleyers/show/albums/show/photos/show/scans/show/posts/index.js" %>
  </div>
</div>